home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DJEMU106.ARJ / MAIN.CC < prev    next >
C/C++ Source or Header  |  1992-04-07  |  403b  |  36 lines

  1. #include <stdlib.h>
  2. #include <stdio.h>
  3.  
  4. #define TEST 0
  5.  
  6. extern void emu_install();
  7. extern void emu_printall();
  8.  
  9. #if TEST
  10.  
  11. double a=10, b=16;
  12. float f=3.3;
  13. int i=3;
  14.  
  15. void test()
  16. {
  17.   asm("fldl _b");
  18.   asm("fldl _a");
  19.   emu_printall();
  20.   asm("fdivr %st,%st(1)");
  21.   emu_printall();
  22. }
  23.  
  24. #endif
  25.  
  26. main()
  27. {
  28. #if TEST
  29.   test();
  30. #endif
  31.   emu_install();
  32. #if TEST
  33.   test();
  34. #endif
  35. }
  36.